$09;   c h a t . p h p  ?><5AB8BL  2   l i b r a r y / a j a x . 
 
 
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 - -   i n d e x . p h p 
 
 -  =09B8 
 
 $ u s e r - > s e s s i o n _ s t a r t ( ) ; 
 
 +  ?>A;5  2AB028BL 
 
 $ p a g e _ c f g [ ' i n c l u d e _ b b c o d e _ j s ' ]   =   t r u e ; 
 
 
 
 i f ( $ b b _ c f g [ ' c h a t ' ] ) 
 
 { 
 
         i f   ( ! $ s q l   =   C A C H E ( ' b b _ c a c h e ' ) - > g e t ( ' c h a t ' ) ) 
 
         { 
 
                 $ s q l   =   D B ( ) - > f e t c h _ r o w s e t ( " S E L E C T   c . * ,   u . u s e r n a m e ,   u . u s e r _ r a n k ,   u . a v a t a r _ e x t _ i d ,   u . u s e r _ o p t 
 
 	 	 	 F R O M   b b _ c h a t   c 
 
 	 	 	 L E F T   J O I N   " .   B B _ U S E R S   . "   u   O N ( u . u s e r _ i d   =   c . u s e r _ i d ) 
 
 	 	 	 O R D E R   B Y   c . i d   D E S C 
 
 	 	 	 L I M I T   { $ b b _ c f g [ ' c h a t _ m e s s a g e ' ] } " ) ; 
 
                 C A C H E ( ' b b _ c a c h e ' ) - > s e t ( ' c h a t ' ,   $ s q l ) ; 
 
         } 
 
 
 
         f o r e a c h ( $ s q l   a s   $ r o w ) 
 
         { 
 
                 $ m e s s a g e   =   ' < d i v   c l a s s = " r o w 1   c h a t - c o m m e n t "   i d = " p p _ ' .   $ r o w [ ' i d ' ]   . ' " > < d i v   s t y l e = " m i n - h e i g h t :   3 2 p x ; " > ' ; 
 
                 $ m e s s a g e   . =   ( $ r o w [ ' u s e r _ i d ' ]   = =   G U E S T _ U I D )   ?   ' '   :   ' < a   h r e f = " ' .   P R O F I L E _ U R L   .   $ r o w [ ' u s e r _ i d ' ]   . ' " > ' ; 
 
                 $ m e s s a g e   . =   s t r _ r e p l a c e ( ' < i m g ' ,   ' < i m g   a l i g n = " l e f t "   h e i g h t = " 3 2 "   w i d t h = " 3 2 "   s t y l e = " p a d d i n g - r i g h t :   3 p x ; " ' ,   g e t _ a v a t a r ( $ r o w [ ' u s e r _ i d ' ] ,   $ r o w [ ' a v a t a r _ e x t _ i d ' ] ,   ! b f ( $ r o w [ ' u s e r _ o p t ' ] ,   ' u s e r _ o p t ' ,   ' d i s _ a v a t a r ' ) ) ) ; 
 
                 $ m e s s a g e   . =   ( $ r o w [ ' u s e r _ i d ' ]   = =   G U E S T _ U I D )   ?   ' '   :   ' < / a > ' ; 
 
                 i f ( I S _ A M ) 
 
                 { 
 
                         $ m e s s a g e   . =   ' < i n p u t   o n c l i c k = " s e t _ h i d _ c h b o x ( ' .   $ r o w [ ' i d ' ]   . ' ) ; "   c l a s s = " f l o a t R   c h a t - p o s t "   t y p e = " c h e c k b o x "   v a l u e = " ' .   $ r o w [ ' i d ' ]   . ' "   / > ' ; 
 
                         $ m e s s a g e   . =   ' < s p a n   o n c l i c k = " e d i t _ c o m m e n t ( ' .   $ r o w [ ' i d ' ]   . ' ) ;   r e t u r n   f a l s e ; "   c l a s s = " t x t b   f l o a t R " > [ p ] < / s p a n > ' ; 
 
                 } 
 
                 $ t i t l e _ i p   =   ( I S _ A D M I N )   ?   d e c o d e _ i p ( $ r o w [ ' i p ' ] )   :   '8:  2  G0B ' ; 
 
                 $ m e s s a g e   . =   ' < a   h r e f = " # "   c l a s s = " b o l d "   t i t l e = " ' .   $ t i t l e _ i p   . ' "   o n c l i c k = " a d d _ n i c k ( \ ' [ n ] ' .   $ r o w [ ' u s e r n a m e ' ]   . ' [ / n ] \ ' ) ;   r e t u r n   f a l s e ; " > ' .   s t r _ r e p l a c e ( ' t i t l e = " ' ,   ' d a t a = " ' ,   p r o f i l e _ u r l ( a r r a y ( ' u s e r n a m e '   = >   $ r o w [ ' u s e r n a m e ' ] ,   ' u s e r _ r a n k '   = >   $ r o w [ ' u s e r _ r a n k ' ] ) ) )   . ' < / a > < d i v   c l a s s = " s m a l l " > ' .   b b _ d a t e ( $ r o w [ ' t i m e ' ] )   . ' < / d i v > < / d i v > ' ; 
 
                 $ m e s s a g e   . =   ' < d i v   c l a s s = " s p a c e r _ 2 " > < / d i v > < s p a n   s t y l e = " f o n t - s i z e :   1 1 p x ; " > ' .   $ r o w [ ' t e x t _ h t m l ' ]   . ' < / s p a n > < / d i v > ' ; 
 
                 $ m e s s a g e   . =   ( I S _ A M )   ?   ' < s p a n   i d = " p e _ ' .   $ r o w [ ' i d ' ]   . ' " > < / s p a n > '   :   ' ' ; 
 
 
 
                 $ t e m p l a t e - > a s s i g n _ b l o c k _ v a r s ( ' c h a t ' ,   a r r a y ( 
 
                         ' T E X T '                 = >   $ m e s s a g e , 
 
                 ) ) ; 
 
         } 
 
         $ t e m p l a t e - > a s s i g n _ v a r s ( a r r a y ( 
 
                 ' C H A T _ I D '   = >   ( i n t )   @ $ s q l [ 0 ] [ ' i d ' ] , 
 
         ) ) ; 
 
 } 
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 - -   p a g e _ h e a d e r . t p l 
 
 +  2AB028BL  2  C4>1=>5  <5AB>   (5;0B5;L=>  2=CB@8   < ! - - s i d e b a r 1 - - > ) 
 
 < ! - -   I F   $ b b _ c f g [ ' c h a t ' ]   - - > 
 
                         < s c r i p t   t y p e = " t e x t / j a v a s c r i p t " > 
 
                                 v a r   i d   =   { C H A T _ I D } ; 
 
                                 a j a x . c a l l b a c k . c h a t   =   f u n c t i o n ( d a t a )   { 
 
                                         i f ( d a t a . u p )   $ ( ' # c h a t ' ) . s c r o l l T o p ( 0 ) ; 
 
                                         i f ( d a t a . c l e a r )   { 
 
                                                 $ ( ' . c h a t _ m e s s a g e ' ) . a t t r ( ' v a l u e ' ,   ' ' ) ; 
 
                                                 g e t _ m e s s a g e _ c h a t ( 1 ) ; 
 
                                         } 
 
                                         < ! - -   I F   I S _ A M   - - > 
 
                                         e l s e   i f ( d a t a . d e l )   { 
 
                                                 f o r ( i = 0 ;   i   <   d a t a . d e l . l e n g t h ;   i + + )   { 
 
                                                         $ ( ' # p p _ ' +   d a t a . d e l [ i ] ) . h i d e ( ) ; 
 
                                                 } 
 
                                         } e l s e   i f ( d a t a . h t m l ) { 
 
                                                 $ ( ' # p p _ ' +   d a t a . p o s t _ i d ) . s h o w ( ) . h t m l ( d a t a . h t m l ) ; 
 
                                                 i n i t P o s t B B C o d e ( ' # p p _ ' +   d a t a . p o s t _ i d ) ; 
 
                                                 $ ( ' # p e _ ' +   d a t a . p o s t _ i d ) . h i d e ( ) ; 
 
                                                 a j a x . o p e n   =   f a l s e ; 
 
                                         }   e l s e   i f ( d a t a . t e x t ) { 
 
                                                 a j a x . o p e n   =   d a t a . p o s t _ i d ; 
 
                                                 $ ( ' # p e _ ' +   d a t a . p o s t _ i d ) . h t m l ( d a t a . t e x t ) ; 
 
                                         } 
 
                                         < ! - -   E N D I F   - - > 
 
                                         e l s e   { 
 
                                                 i f ( d a t a . m e s s a g e )   $ ( ' # c h a t ' ) . p r e p e n d ( d a t a . m e s s a g e ) ; 
 
                                                 i n i t P o s t B B C o d e ( ' # c h a t ' ) ; 
 
                                         } 
 
 
 
                                         i f ( d a t a . i d )   i d   =   d a t a . i d ; 
 
                                 } ; 
 
                                 s e t I n t e r v a l ( f u n c t i o n ( ) {   g e t _ m e s s a g e _ c h a t ( 0 ) ;   } ,   2 5 0 0 0 ) ; 
 
 
 
                                 f u n c t i o n   g e t _ m e s s a g e _ c h a t ( u p ) { 
 
                                         a j a x . e x e c ( { a c t i o n   :   ' c h a t ' ,   m o d e :   ' s e l e c t ' ,   i d :   i d ,   u p :   u p } ) ; 
 
                                 } 
 
                                 f u n c t i o n   s u b m i t _ c l i c k ( e )   { 
 
                                         e   =   e   | |   w i n d o w . e v e n t ; 
 
                                         i f   ( e . k e y C o d e   = =   1 3   & &   e . c t r l K e y )   { 
 
                                                 s u b m i t _ c h a t ( ) ; 
 
                                         } ; 
 
                                 } 
 
                                 f u n c t i o n   s u b m i t _ c h a t ( ) { 
 
                                         v a r   m e s s a g e   =   $ ( ' . c h a t _ m e s s a g e ' ) . v a l ( ) ; 
 
                                         i f   ( m e s s a g e . l e n g t h   <   3 )   { 
 
                                                 a l e r t ( 'K  4>;6=K  225AB8  B5:AB  A>>1I5=8O ' ) ; 
 
                                                 $ ( ' . c h a t _ m e s s a g e ' ) . f o c u s ( ) ; 
 
                                                 r e t u r n   f a l s e ; 
 
                                         } 
 
                                         a j a x . e x e c ( { a c t i o n   :   ' c h a t ' ,   m o d e :   ' i n s e r t ' ,   m e s s a g e :   m e s s a g e } ) ; 
 
                                 } 
 
                                 f u n c t i o n   a d d _ n i c k ( t e x t ) { 
 
                                         v a r   m e s s a g e   =   $ ( ' . c h a t _ m e s s a g e ' ) . v a l ( ) ; 
 
                                         $ ( ' . c h a t _ m e s s a g e ' ) . a t t r ( ' v a l u e ' ,   m e s s a g e   +   t e x t   + '   ' ) ; 
 
                                         $ ( ' . c h a t _ m e s s a g e ' ) . f o c u s ( ) ; 
 
                                 } 
 
                         < / s c r i p t > 
 
                         < ! - -   I F   I S _ A M   - - > 
 
                         < s c r i p t   t y p e = " t e x t / j a v a s c r i p t " > 
 
                                 a j a x . o p e n   =   f a l s e ; 
 
                                 f u n c t i o n   e d i t _ c o m m e n t   ( p o s t _ i d ,   t e x t ,   t y p e )   { 
 
                                         i f ( a j a x . o p e n   & &   a j a x . o p e n   ! =   p o s t _ i d )   { 
 
                                                 a l e r t ( '#  20A  C65  >B:@KB>  >4=>  1KAB@>5  @540:B8@>20=85 ! ' ) ; 
 
                                         }   e l s e { 
 
                                                 i f ( a j a x . o p e n   & &   ! t e x t ) { 
 
                                                         $ ( ' # p p _ ' +   p o s t _ i d ) . s h o w ( ) ; 
 
                                                         $ ( ' # p e _ ' +   p o s t _ i d ) . h i d e ( ) ; 
 
                                                 }   e l s e { 
 
                                                         $ ( ' # p p _ ' +   p o s t _ i d ) . h i d e ( ) ; 
 
                                                         $ ( ' # p e _ ' +   p o s t _ i d ) . s h o w ( ) ; 
 
 
 
                                                         a j a x . e x e c ( { 
 
                                                                 a c t i o n     :   ' c h a t ' , 
 
                                                                 m o d e         :   ' e d i t ' , 
 
                                                                 p o s t _ i d   :   p o s t _ i d , 
 
                                                                 t e x t         :   t e x t , 
 
                                                                 t y p e         :   t y p e 
 
                                                         } ) ; 
 
                                                 } 
 
                                                 a j a x . o p e n   =   f a l s e ; 
 
                                         } 
 
                                 } 
 
                                 f u n c t i o n   d e l _ m e s s a g e _ c h a t ( ) { 
 
                                         i f ( ! c o n f i r m ( 'K  C25@5=K ,  GB>  E>B8B5  C40;8BL  MB8  A>>1I5=8O ? ' ) )   r e t u r n   f a l s e ; 
 
                                         v a r   i d s   =   0 ; 
 
                                         $ ( ' i n p u t . c h a t - p o s t : c h e c k e d ' ) . e a c h ( f u n c t i o n ( ) { 
 
                                                 i d s   + =   ' , ' +   t h i s . v a l u e ; 
 
                                         } ) ; 
 
                                         i f ( ! i d s )   a l e r t ( 'K  =5  2K1@0;8  A>>1I5=8O . ' ) ; 
 
                                         e l s e   a j a x . e x e c ( { a c t i o n   :   ' c h a t ' ,   m o d e :   ' d e l e t e ' ,   i d s :   i d s } ) ; 
 
                                 } 
 
                                 f u n c t i o n   s e t _ h i d _ c h b o x ( i d ) 
 
                                 { 
 
                                         $ ( ' # p p _ ' +   i d ) . t o g g l e C l a s s ( ' h l - s e l e c t e d - p o s t ' ) ; 
 
                                         r e t u r n   f a l s e ; 
 
                                 } 
 
                         < / s c r i p t > 
 
                         < ! - -   E N D I F   - - > 
 
                         < s t y l e   t y p e = " t e x t / c s s " > 
 
                                 # c h a t   {   o v e r f l o w :   a u t o ;   h e i g h t :   3 0 0 p x ;   } 
 
                                 . c h a t - c o m m e n t   { 
 
                                         m a r g i n :   3 p x ; 
 
                                         p a d d i n g :   4 p x ; 
 
                                         b o r d e r :   s o l i d   1 p x   # b 7 c 0 c 5 ; 
 
                                         b o r d e r - r a d i u s :   5 p x ; 
 
                                         - m o z - b o r d e r - r a d i u s :   5 p x ; 
 
                                         - w e b k i t - b o r d e r - r a d i u s :   5 p x ; 
 
                                 } 
 
                                 t e x t a r e a . c h a t _ m e s s a g e   { 
 
                                         h e i g h t :   4 0 p x ; 
 
                                         m a r g i n :   4 p x ; 
 
                                         b o r d e r - r a d i u s :   0 p x ; 
 
                                         - m o z - b o r d e r - r a d i u s :   0 p x ; 
 
                                         - w e b k i t - b o r d e r - r a d i u s :   0 p x ; 
 
                                         f o n t - s i z e :   1 1 p x ; 
 
                                 } 
 
                                 # s u b m i t _ c h a t   { 
 
                                         b o r d e r :   1 p x   s o l i d   # b 7 c 0 c 5 ; 
 
                                         p a d d i n g :   2 p x ; 
 
                                         b a c k g r o u n d - c o l o r :   # E F E F E F ; 
 
                                         f o n t - s i z e :   1 0 p x ; 
 
                                         f o n t - w e i g h t :   b o l d ; 
 
                                 } 
 
                                 # s u b m i t _ c h a t : h o v e r   {   c o l o r :   # 0 0 8 0 F F ;   } 
 
                         < / s t y l e > 
 
                         < h 3 >8=8  G0B < / h 3 > 
 
                         < d i v   c l a s s = " t C e n t e r " > 
 
                                 < f o r m   n a m e = " p o s t " > 
 
                                         < t e x t a r e a   c l a s s = " c h a t _ m e s s a g e   w 9 0 "   i d = " m e s s a g e "   o n k e y d o w n = " s u b m i t _ c l i c k ( e v e n t ) " > < / t e x t a r e a > 
 
                                         < d i v   c l a s s = " b u t t o n s   m r g _ 4 " > 
 
                                                 < i n p u t   t y p e = " b u t t o n "   v a l u e = " B "   n a m e = " c o d e B "   t i t l e = " { L _ B O L D } "   s t y l e = " f o n t - w e i g h t :   b o l d ;   w i d t h :   3 0 p x ; "   / > 
 
                                                 < i n p u t   t y p e = " b u t t o n "   v a l u e = " i "   n a m e = " c o d e I "   t i t l e = " { L _ I T A L I C } "   s t y l e = " w i d t h :   3 0 p x ;   f o n t - s t y l e :   i t a l i c ; "   / > 
 
                                                 < i n p u t   t y p e = " b u t t o n "   v a l u e = " u "   n a m e = " c o d e U "   t i t l e = " { L _ U N D E R L I N E } "   s t y l e = " w i d t h :   3 0 p x ;   t e x t - d e c o r a t i o n :   u n d e r l i n e ; "   / > 
 
                                                 < i n p u t   t y p e = " b u t t o n "   v a l u e = " s "   n a m e = " c o d e S "   t i t l e = " { L _ S T R I K E O U T } "   s t y l e = " w i d t h :   3 0 p x ;   t e x t - d e c o r a t i o n :   l i n e - t h r o u g h ; "   / > & n b s p ; & n b s p ; 
 
                                                 < i n p u t   t y p e = " b u t t o n "   v a l u e = " { L _ Q U O T E } "   n a m e = " c o d e Q u o t e "   t i t l e = " { L _ Q U O T E _ T I T L E } "   s t y l e = " w i d t h :   5 7 p x ; "   / > 
 
                                                 < i n p u t   t y p e = " b u t t o n "   v a l u e = " I m g "   n a m e = " c o d e I m g "   t i t l e = " { L _ I M G _ T I T L E } "   s t y l e = " w i d t h :   4 0 p x ; "   / > 
 
                                                 < i n p u t   t y p e = " b u t t o n "   v a l u e = " { L _ U R L } "   n a m e = " c o d e U r l "   t i t l e = " { L _ U R L _ T I T L E } "   s t y l e = " w i d t h :   6 3 p x ;   t e x t - d e c o r a t i o n :   u n d e r l i n e ; "   / > 
 
                                                 < i n p u t   t y p e = " h i d d e n "   n a m e = " c o d e U r l 2 "   / > & n b s p ; 
 
                                                 < i n p u t   t y p e = " b u t t o n "   v a l u e = " { L _ C O D E } "   n a m e = " c o d e C o d e "   t i t l e = " { L _ C O D E _ T I T L E } "   s t y l e = " w i d t h :   4 3 p x ; "   / > 
 
                                                 < i n p u t   t y p e = " b u t t o n "   v a l u e = " { L _ L I S T } "   n a m e = " c o d e L i s t "   t i t l e = " { L _ L I S T _ T I T L E } "   s t y l e = " w i d t h :   6 0 p x ; "   / > 
 
                                                 < i n p u t   t y p e = " b u t t o n "   v a l u e = " 1 . "   n a m e = " c o d e O p t "   t i t l e = " { L _ L I S T _ I T E M } "   s t y l e = " w i d t h :   3 0 p x ; "   / > & n b s p ; 
 
                                                 < i n p u t   t y p e = " b u t t o n "   v a l u e = " { L _ Q U O T E _ S E L } "   n a m e = " q u o t e s e l e c t e d "   t i t l e = " { L _ Q U O T E _ S E L E C T E D } "   o n m o u s e o u t = " b b c o d e . r e f r e s h S e l e c t i o n ( f a l s e ) ; "   o n m o u s e o v e r = " b b c o d e . r e f r e s h S e l e c t i o n ( t r u e ) ; "   o n c l i c k = " b b c o d e . o n c l i c k Q u o t e S e l ( ) ; "   / > & n b s p ; 
 
                                         < / d i v > 
 
                                         < s c r i p t   t y p e = " t e x t / j a v a s c r i p t " > 
 
                                                 v a r   b b c o d e   =   n e w   B B C o d e ( " m e s s a g e " ) ; 
 
                                                 v a r   c t r l   =   " c t r l " ; 
 
 
 
                                                 b b c o d e . a d d T a g ( " c o d e B " ,   " b " ,   n u l l ,   " B " ,   c t r l ) ; 
 
                                                 b b c o d e . a d d T a g ( " c o d e I " ,   " i " ,   n u l l ,   " I " ,   c t r l ) ; 
 
                                                 b b c o d e . a d d T a g ( " c o d e U " ,   " u " ,   n u l l ,   " U " ,   c t r l ) ; 
 
                                                 b b c o d e . a d d T a g ( " c o d e S " ,   " s " ,   n u l l ,   " S " ,   c t r l ) ; 
 
 
 
                                                 b b c o d e . a d d T a g ( " c o d e Q u o t e " ,   " q u o t e " ,   n u l l ,   " Q " ,   c t r l ) ; 
 
                                                 b b c o d e . a d d T a g ( " c o d e I m g " ,   " i m g " ,   n u l l ,   " R " ,   c t r l ) ; 
 
                                                 b b c o d e . a d d T a g ( " c o d e U r l " ,   " u r l " ,   " / u r l " ,   " " ,   c t r l ) ; 
 
                                                 b b c o d e . a d d T a g ( " c o d e U r l 2 " ,   " u r l = " ,   " / u r l " ,   " W " ,   c t r l ) ; 
 
 
 
                                                 b b c o d e . a d d T a g ( " c o d e C o d e " ,   " c o d e " ,   n u l l ,   " K " ,   c t r l ) ; 
 
                                                 b b c o d e . a d d T a g ( " c o d e L i s t " ,     " l i s t " ,   n u l l ,   " L " ,   c t r l ) ; 
 
                                                 b b c o d e . a d d T a g ( " c o d e O p t " ,   " * " ,   " " ,   " 0 " ,   c t r l ) ; 
 
                                         < / s c r i p t > 
 
 
 
                                         < d i v   c l a s s = " f l o a t R   p a d _ 4 " > 
 
                                                 < s p a n   t i t l e = "?@028BL   ( C t r l + E n t e r ) "   i d = " s u b m i t _ c h a t "   o n c l i c k = " s u b m i t _ c h a t ( ) ;   r e t u r n   f a l s e ; " >B?@028BL < / s p a n > 
 
                                                 < s p a n   t i t l e = "G8AB8BL "   i d = " s u b m i t _ c h a t "   o n c l i c k = " $ ( ' . c h a t _ m e s s a g e ' ) . a t t r ( ' v a l u e ' ,   ' ' ) ;   $ ( ' . c h a t _ m e s s a g e ' ) . f o c u s ( ) ; " > & n b s p ; X & n b s p ; < / s p a n > 
 
                                                 < s p a n   t i t l e = "!<09;K "   i d = " s u b m i t _ c h a t "   o n c l i c k = " w i n d o w . o p e n ( ' p o s t i n g . p h p ? m o d e = s m i l i e s ' ,   ' _ p h p b b s m i l i e s ' ,   ' h e i g h t = 5 4 0 ,   r e s i z a b l e = y e s ,   s c r o l l b a r s = y e s   , w i d t h = 6 2 0 ,   l e f t = 3 6 0 ,   t o p = 6 0 ' ) ;   r e t u r n   f a l s e ; " > & n b s p ; : ) & n b s p ; < / s p a n > 
 
                                                 < ! - -   I F   I S _ A M   - - > < s p a n   t i t l e = "#40;O;:0 "   i d = " s u b m i t _ c h a t "   o n c l i c k = " d e l _ m e s s a g e _ c h a t ( ) ; " > & # 8 2 2 4 ; < / s p a n > < ! - -   E N D I F   - - > 
 
                                                 < i m g   t i t l e = "1=>28BL  G0B "   o n c l i c k = " g e t _ m e s s a g e _ c h a t ( 1 ) ; "   s r c = " / s t y l e s / i m a g e s / p i c _ l o a d i n g . g i f " > 
 
                                         < / d i v > 
 
                                         < d i v   c l a s s = " c l e a r " > < / d i v > 
 
                                         < d i v   c l a s s = " s p a c e r _ 2 " > < / d i v > 
 
                                         < d i v   c l a s s = " t L e f t   w 1 0 0 "   i d = " c h a t " > 
 
                                                 < ! - -   B E G I N   c h a t   - - > { c h a t . T E X T } < ! - -   E N D   c h a t   - - > 
 
                                         < / d i v > 
 
                                 < / f o r m > 
 
                         < / d i v > 
 
                 < / d i v > 
 
                 < d i v   c l a s s = " c a t _ s e p a r a t o r " > < / d i v > 
 
                 < ! - -   E N D I F   - - > 
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 - -   c o n f i g . p h p 
 
 +  2  A0<K9  :>=5F 
 
 $ b b _ c f g [ ' c h a t ' ]                   =   t r u e ; 
 
 $ b b _ c f g [ ' c h a t _ m e s s a g e ' ]   =   5 0 ; 
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 - -   s q l 
 
 C R E A T E   T A B L E   ` b b _ c h a t `   ( 
 
     ` i d `   i n t ( 1 1 )   N O T   N U L L   a u t o _ i n c r e m e n t , 
 
     ` u s e r _ i d `   i n t ( 1 1 )   N O T   N U L L   d e f a u l t   ' 0 ' , 
 
     ` t i m e `   i n t ( 1 1 )   N O T   N U L L   d e f a u l t   ' 0 ' , 
 
     ` t e x t `   t e x t   N O T   N U L L , 
 
     ` t e x t _ h t m l `   t e x t   N O T   N U L L , 
 
     ` i p `   c h a r ( 3 2 )   N O T   N U L L , 
 
     P R I M A R Y   K E Y     ( ` i d ` ) 
 
 )   E N G I N E = M y I S A M     D E F A U L T   C H A R S E T = u t f 8 ; 
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 - -   a j a x . p h p 
 
 -  =09B8 
 
 s w i t c h   ( $ a j a x - > a c t i o n ) 
 
 { 
 
 	 c a s e   ' v i e w _ p o s t ' : 
 
         c a s e   ' p o s t s ' : 
 
         c a s e   ' p o s t _ m o d _ c o m m e n t ' : 
 
 	 	 r e q u i r e   I N C _ D I R   .   ' / b b c o d e . p h p ' ; 
 
 	 	 b r e a k ; 
 
 +  70<5=8BL  =0 
 
 s w i t c h   ( $ a j a x - > a c t i o n ) 
 
 { 
 
 	 c a s e   ' c h a t ' : 
 
 	 c a s e   ' v i e w _ p o s t ' : 
 
         c a s e   ' p o s t s ' : 
 
         c a s e   ' p o s t _ m o d _ c o m m e n t ' : 
 
 	 	 r e q u i r e   I N C _ D I R   .   ' / b b c o d e . p h p ' ; 
 
 	 	 b r e a k ; 
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
 - -   s r c / A j a x . p h p 
 
 -  =09B8 
 
                 ' v i e w _ p o s t '   = >   [ ' g u e s t ' ] , 
 
 +  ?>A;5  2AB028BL 
 
                 ' c h a t '   = >   [ ' g u e s t ' ] , 
 
 -  =09B8 
 
 	 p u b l i c   f u n c t i o n   m a n a g e _ u s e r ( ) 
 
         { 
 
                 r e q u i r e   A J A X _ D I R   .   ' / m a n a g e _ u s e r . p h p ' ; 
 
         } 
 
 +  ?>A;5  2AB028BL 
 
 	 p u b l i c   f u n c t i o n   c h a t ( ) 
 
         { 
 
                 r e q u i r e   A J A X _ D I R   .   ' / c h a t . p h p ' ; 
 
         } 
 
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
 
